namespace java com.fgchen.study.user.service

include "domain.thrift"
include "exception.thrift"

service UserService {
    void save(1: domain.User user) throws (1: exception.CrudException ex);
    domain.User query(1: string username) throws (1: exception.CrudException ex);
    void update(1: domain.User user) throws (1: exception.CrudException ex);
    void remove(1: string username) throws (1: exception.CrudException ex);
}

service LoginService {
    bool login(1: domain.User user) throws (1: exception.LoginException ex);
}